<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" errorPage="DBError.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.db.*"%>
<%@ page import="com.carebuddy.petcare.biz.*"%>
<%@ page import="com.carebuddy.petcare.controller.*"%>
<%
	request.setCharacterEncoding("UTF-8");
%>
<jsp:useBean id="petcareVO" class="com.db.vo.PetcareVO"><jsp:setProperty name="petcareVO" property="*"/></jsp:useBean>
<%
	Carebuddy carebuddy = new Carebuddy();
	PetcareController petcareController = carebuddy.getPetcareController();
		
	petcareController.insertPetcare(petcareVO);
%>
	<script>
	// 알림 메시지 출력
	alert("위탁신청이 완료되었습니다.");
	parent.location.replace('../../index2.jsp');
	</script>
	
	<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>위탁신청처리</title>
</head>
<body>
</body>
</html>
